{% load i18n %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{% block title %}{{ siteName }}{% endblock %}</title>
<meta name="Description" content="{% block description %}{{ site_desc }}{% endblock %}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="/site_media/layout/style.css" type="text/css" />
<link rel="shortcut icon" href="/site_media/layout/favicon.ico" />
<script src="/site_media/layout/libs.js" type="text/javascript"></script>
{% block meta %}{% endblock %}
</head>
<body>

<div id="head">
	<h1>{% block header %}{{ siteName }}{% endblock %}</h1>
	<ul>
		<li{% if on_help %} id="current"{% endif %}><a href="/w/">{% trans "Help Page" %}</a></li>
		<li{% if on_forum %} id="current"{% endif %}><a href="/forum/">{% trans "Forum" %}</a></li>
		<li{% block on_user %}{% endblock %} id="loginlink">
		{% if user.is_authenticated %}
			<a href="/user/">{% trans "My Account" %} ({{ user }})</a>
		{% else %}
			{% if new_openid %}
				<a href="/user/register_openid/" >{% trans "Compleate OpenID registration" %}</a>
			{% else %}
				<a href="/user/login/">{% trans "Login or Register" %}</a>
				</li><li><a href="/user/login/">{% trans "Login with OpenID" %}</a>
			{% endif %}
		{% endif %}</li>
	</ul>
</div>
<div class="invertedshiftdown2">
<ul>
	<li><a href="/">{% trans "Home" %}</a></li>
	{% for b in books %}
		<li{% ifequal b.slug current_book %} class="current"{% endifequal %}><a href="/w/p/{{ b.slug }}/">{{ b.title }}</a></li>
	{% endfor %}
</ul>


<br style="clear: both;" />
</div>

<div id="container">
	<div id="contentWrapper">
		<div class="content">
		<div id="crumb"><b>{% trans "You are here" %}</b>: {% block crumb %}<a href="/">{% trans "Home" %}</a>{% endblock %}</div>
		{% block content %}{% endblock %}
		</div>
	</div>
	
	<div id="panelWrapper">
		<div class="panel">
		<ul>
		{% block pagemenu %}{% endblock %}
		<li class="book" style="margin-top:15px;"><a href="/w/n/">{% trans "Browse news" %}</a></li>
		<li class="pagerss"><a href="/w/rss/">{% trans "RSS - Latest Articles" %}</a></li>
		<li class="pagerss"><a href="/w/rss/all/">{% trans "RSS - What's new" %}</a></li>
		</ul>
		</div>
		<br />
		<div class="panel">
			<div>
			<form action="/w/search/" method="post">
				<input type="text" name="term" /> <input class="button" type="submit" value="{% trans "Search" %}" />
			</form>
			</div>
			<ul>
				
				
			</ul>
		</div>
		{% block left %}{% endblock %}
	</div>
	<br style="clear:both;" />
</div>
</body>
</html>